<div class="panel panel-primary">
  <div class="panel-heading">
    <h3 class="panel-title">文章分类</h3>
  </div>
  <div class="panel-body">
        {% for category_dict in category_list %}
            <p><a href="/{{ username }}/category/{{ category_dict.pk }}/">{{ category_dict.name }}({{ category_dict.article_num }})</a></p>
        {% endfor %}
  </div>
</div>
<div class="panel panel-danger">
  <div class="panel-heading">
    <h3 class="panel-title">文章标签</h3>
  </div>
  <div class="panel-body">
        {% for tag_dict in tag_list %}
            <p><a href="/{{ username }}/tag/{{ tag_dict.pk }}/">{{ tag_dict.name }}({{ tag_dict.article_num }})</a></p>
        {% endfor %}
  </div>
</div>
<div class="panel panel-success">
  <div class="panel-heading">
    <h3 class="panel-title">日期归档</h3>
  </div>
  <div class="panel-body">
         {% for date_dict in date_list %}
            <p><a href="/{{ username }}/archive/{{ date_dict.month|date:'Y-m' }}/">{{ date_dict.month|date:'Y年m月' }}({{ date_dict.c }})</a></p>
        {% endfor %}
  </div>
</div>